﻿using IBll;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Model;

namespace WebAop.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class StatusBllController : ControllerBase, IStatusBll
    {
         public StatusBllController(IStatusBll bll)
        {
            Bll = bll;
        }

        public IStatusBll Bll { get; }

        [HttpGet]
        public List<Status> statuses()
        {
              return Bll.statuses();
        }
    }
}
